#include "PageControl.h"
#include "Control/Init.h"
using namespace IM_GUI_KIT;
PageControl::PageControl()
{

}

void PageControl::ShowMain(){
  std::cout<<"set show mian "<<std::endl;
  Init::Instance()->getEngine()->rootObjects().at(0)->setProperty("visible", false);
  Init::Instance()->getEngine()->rootObjects().at(1)->setProperty("visible", true);
}

void PageControl::ShowLogin()
{
  std::cout<<"set show Login "<<std::endl;
  Init::Instance()->getEngine()->rootObjects().at(0)->setProperty("visible", true);
  Init::Instance()->getEngine()->rootObjects().at(1)->setProperty("visible", false);
}

